package ig.metrica.modelos.entity;

import javax.ejb.*;

/**
 * This is the bean class for the ModeloorigenesdatosBean enterprise bean.
 * Created 18/04/2006 02:10:34 PM
 * @author jsanchez
 */
public final class ModeloorigenesdatosPK implements java.io.Serializable {
    
    public java.lang.Integer modelo;
    public java.lang.Integer origenesdatos;
    /**
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public boolean equals(java.lang.Object otherOb) {
        
        if (this == otherOb) {
            return true;
        }
        if (!(otherOb instanceof ig.metrica.modelos.entity.ModeloorigenesdatosPK)) {
            return false;
        }
        ig.metrica.modelos.entity.ModeloorigenesdatosPK other = (ig.metrica.modelos.entity.ModeloorigenesdatosPK) otherOb;
        return (
                
                (modelo==null?other.modelo==null:modelo.equals(other.modelo))
                &&
                (origenesdatos==null?other.origenesdatos==null:origenesdatos.equals(other.origenesdatos))
                
                );
    }
    
    /**
     * @see java.lang.Object#hashCode()
     */
    public int hashCode() {
        return (
                
                (modelo==null?0:modelo.hashCode())
                ^
                (origenesdatos==null?0:origenesdatos.hashCode())
                
                );
    }
    
}
